//
//  FinaceLIstViewController.m
//  VirtualViewDemo
//
//  Created by xiaerfei on 2018/12/26.
//  Copyright © 2018 tmall. All rights reserved.
//

#import "FinaceLIstViewController.h"
#import <VirtualView/VVViewContainer.h>
#import <VirtualView/VVTemplateManager.h>
@interface FinaceLIstViewController ()<VirtualViewDelegate>

@property (nonatomic, strong) VVViewContainer *container;

@end

@implementation FinaceLIstViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.container.delegate = self;
    if (![[VVTemplateManager sharedManager].loadedTypes containsObject:@"PageItem"]) {
        NSString *path = [[NSBundle mainBundle] pathForResource:@"PageItem" ofType:@"out"];
        [[VVTemplateManager sharedManager] loadTemplateFile:path forType:nil];
    }
    if (![[VVTemplateManager sharedManager].loadedTypes containsObject:@"FinanceList"]) {
        NSString *path = [[NSBundle mainBundle] pathForResource:@"FinanceList" ofType:@"out"];
        [[VVTemplateManager sharedManager] loadTemplateFile:path forType:nil];
    }
    
}


- (NSDictionary *)params
{
    return @{
             @"type" : @"HomeFinanceList",
             @"data":@[
                    @{
                        @"type" : @"FinanceList",
                        @"text": @"固定期限 | 2年期",
                        @"rate":@"44.32%",
                        @"desc":@"每日加息最高5%",
                        @"content":@"立即转入>",
                        @"imageSrc":@"https://teststable-ms.stg.1qianbao.com/v6/images/2018/8/9/zzzz1533807818254.png"
                        
                        },
                    @{
                        @"type" : @"PageItem",
                        @"imgUrl" : @"https://img.alicdn.com/imgextra/i4/2215696389/TB2uXtXXGZPyuJjy1zcXXXp1FXa_!!2215696389.jpg",
                        @"title" : @"title2",
                        @"action" : @"action2"
                        },
                    ],
             @"style": @{@"layoutHeight":@"200"}
             };
}


@end
